import request from '@/utils/request'

//  获取课程信息 8个
export function getCourseLimit() {
  return request({
    url: `/edu/front/getCourse`,
    method: 'get'
  })
}

// 获取课程基本信息 附带条件
export function getCourseByCase(current, limit, courseFrontVo) {
  return request({
    url: `/edu/front/getCourse/${current}/${limit}`,
    method: 'post',
    data: courseFrontVo
  })
}
// 课程详情页 课程详细信息
export function getFrontCourseInfo(courseId) {
  return request({
    url: `/edu/front/getFrontCourseInfo/${courseId}`,
    method: 'get'
  })
}
//播放授权
export function geyPlayOauth(videoSourceId) {
  return request({
    url: `/eduvod/service/getVideoPlayOauth/${videoSourceId}`,
    method: 'get'
  })
}
